const app = getApp()

Page({
  data: {

  },
  onLoad: function (options) {
    var that = this;
    that.setData({
      user_id: options.user_id
    })
  },
  onShow:function(){
    var is_Register = wx.getStorageSync('is_Register');
    if (!is_Register) {
      wx.showModal({
        title: '提示',
        content: '请先注册',
        showCancel: false
      })
    }
  },
  toPersonalMsg:function(){
    var that = this;
    wx.navigateTo({
      url: '/pages/my/personalMsg?user_id=' + that.data.user_id,
    })
  },
  toChangeSkin:function(){
    wx.navigateTo({
      url: '/pages/my/changeSkin',
    })
  }

})
